#ifdef WIN32
#pragma warning (disable:4514 4786)
#endif // WIN32
#ifndef _PERSON
#define _PERSON
#include <string>
using namespace std;

class Date
{
protected:
    int year;
    int month;
    int day;
public:
    void Set(int y,int m,int d);
    int GetYear();
    int GetMonth();
    int GetDay();
};

class Person
{
protected:
    string name;
    string number;
    char sex;
    Date birthday;
    string speciality;
    string researchTopic;
    string academicTitle;
    int type;
public:
    Person(string na,string num,char s,int y,int m,int d,string sp,string re, string ac,int ty);
    bool operator<(Person ob)const;
    string GetName()const;
    string GetNumber()const;
    char GetSex()const;
    Date GetBirth()const;
    string GetSpec()const;
    string GetResearch()const;
    string GetAcademic()const;
    int GetType()const;
};

#endif // PERSON_H
